package org.feng.entity;

import lombok.Data;
import lombok.EqualsAndHashCode;
import io.swagger.v3.oas.annotations.media.Schema;
import com.baomidou.mybatisplus.annotation.TableName;
import org.feng.base.entity.BaseEntity;

import java.io.Serializable;

/**
 * 定时任务表
 *
 * @author : FengShuai
 * @since : 2024/6/27 9:24
 */
@Data
@EqualsAndHashCode(callSuper = true)
@TableName("sys_scheduler")
@Schema(name = "定时任务")
public class SysScheduler extends BaseEntity<SysScheduler> implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 任务名称
     */
    @Schema(title = "任务名称")
    private String name;
    /**
     * 目标方法
     */
    @Schema(title = "目标方法")
    private String target;
    /**
     * cron表达式
     */
    @Schema(title = "cron表达式")
    private String cron;
    /**
     * 并发 0不允许 1允许
     */
    @Schema(title = "并发 0不允许 1允许")
    private Boolean concurrent;
    /**
     * 状态 0停用  1正常
     */
    @Schema(title = "状态 0停用  1正常 ")
    private Boolean status;
}
